package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.expression.parser.core.available.TableAvailable;
import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLColumn;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import com.easy.query.core.proxy.core.EntitySQLContext;
import org.byqh.dqeai.entity.EaiSysBusiness;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLLocalDateTimeTypeColumn;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class EaiSysBusinessProxy extends AbstractProxyEntity<EaiSysBusinessProxy, EaiSysBusiness> {

    private static final Class<EaiSysBusiness> entityClass = EaiSysBusiness.class;

    public static final EaiSysBusinessProxy TABLE = createTable().createEmpty();

    public static EaiSysBusinessProxy createTable() {
        return new EaiSysBusinessProxy();
    }

    public EaiSysBusinessProxy() {
    }

    /**
     * {@link EaiSysBusiness#getBusinessId}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> businessId() {
        return getStringTypeColumn("businessId");
    }

    /**
     * {@link EaiSysBusiness#getBusinessName}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> businessName() {
        return getStringTypeColumn("businessName");
    }

    /**
     * {@link EaiSysBusiness#getCategoryId}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> categoryId() {
        return getStringTypeColumn("categoryId");
    }

    /**
     * {@link EaiSysBusiness#getBusinessDesc}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> businessDesc() {
        return getStringTypeColumn("businessDesc");
    }

    /**
     * 创建日期
     * {@link EaiSysBusiness#getCreateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysBusinessProxy> createDate() {
        return getLocalDateTimeTypeColumn("createDate");
    }

    /**
     * {@link EaiSysBusiness#getCreateUserId}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> createUserId() {
        return getStringTypeColumn("createUserId");
    }

    /**
     * 最后更新的日期
     * {@link EaiSysBusiness#getUpdateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysBusinessProxy> updateDate() {
        return getLocalDateTimeTypeColumn("updateDate");
    }

    /**
     * {@link EaiSysBusiness#getUpdateUserId}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> updateUserId() {
        return getStringTypeColumn("updateUserId");
    }

    /**
     * {@link EaiSysBusiness#get字段}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> 字段() {
        return getStringTypeColumn("字段");
    }

    /**
     * {@link EaiSysBusiness#getZd}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> zd() {
        return getStringTypeColumn("zd");
    }

    /**
     * {@link EaiSysBusiness#getZd2}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> zd2() {
        return getStringTypeColumn("zd2");
    }

    /**
     * 演示
     * {@link EaiSysBusiness#getYsyzd}
     */
    public SQLStringTypeColumn<EaiSysBusinessProxy> ysyzd() {
        return getStringTypeColumn("ysyzd");
    }

    @Override
    public Class<EaiSysBusiness> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public EaiSysBusinessProxyFetcher FETCHER = new EaiSysBusinessProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class EaiSysBusinessProxyFetcher extends AbstractFetcher<EaiSysBusinessProxy, EaiSysBusiness, EaiSysBusinessProxyFetcher> {

        public EaiSysBusinessProxyFetcher(EaiSysBusinessProxy proxy, EaiSysBusinessProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * {@link EaiSysBusiness#getBusinessId}
         */
        public EaiSysBusinessProxyFetcher businessId() {
            return add(getProxy().businessId());
        }

        /**
         * {@link EaiSysBusiness#getBusinessName}
         */
        public EaiSysBusinessProxyFetcher businessName() {
            return add(getProxy().businessName());
        }

        /**
         * {@link EaiSysBusiness#getCategoryId}
         */
        public EaiSysBusinessProxyFetcher categoryId() {
            return add(getProxy().categoryId());
        }

        /**
         * {@link EaiSysBusiness#getBusinessDesc}
         */
        public EaiSysBusinessProxyFetcher businessDesc() {
            return add(getProxy().businessDesc());
        }

        /**
         * 创建日期
         * {@link EaiSysBusiness#getCreateDate}
         */
        public EaiSysBusinessProxyFetcher createDate() {
            return add(getProxy().createDate());
        }

        /**
         * {@link EaiSysBusiness#getCreateUserId}
         */
        public EaiSysBusinessProxyFetcher createUserId() {
            return add(getProxy().createUserId());
        }

        /**
         * 最后更新的日期
         * {@link EaiSysBusiness#getUpdateDate}
         */
        public EaiSysBusinessProxyFetcher updateDate() {
            return add(getProxy().updateDate());
        }

        /**
         * {@link EaiSysBusiness#getUpdateUserId}
         */
        public EaiSysBusinessProxyFetcher updateUserId() {
            return add(getProxy().updateUserId());
        }

        /**
         * {@link EaiSysBusiness#get字段}
         */
        public EaiSysBusinessProxyFetcher 字段() {
            return add(getProxy().字段());
        }

        /**
         * {@link EaiSysBusiness#getZd}
         */
        public EaiSysBusinessProxyFetcher zd() {
            return add(getProxy().zd());
        }

        /**
         * {@link EaiSysBusiness#getZd2}
         */
        public EaiSysBusinessProxyFetcher zd2() {
            return add(getProxy().zd2());
        }

        /**
         * 演示
         * {@link EaiSysBusiness#getYsyzd}
         */
        public EaiSysBusinessProxyFetcher ysyzd() {
            return add(getProxy().ysyzd());
        }

        @Override
        protected EaiSysBusinessProxyFetcher createFetcher(EaiSysBusinessProxy cp, AbstractFetcher<EaiSysBusinessProxy, EaiSysBusiness, EaiSysBusinessProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new EaiSysBusinessProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
